<template>
	<view class="content">
		<web-view
			src="https://mp.usr.cn/draw/s.html?s=7bu2rw782f&a=aHR0cHM6Ly9hcGltcC51c3IuY24vdXNyQ2xvdWQ=&l=cn"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		onLoad() {

		},
		// // #ifdef APP||APP-PLUS
		// onReady: function() {
		// 	wv = plus.webview.create(
		// 		"https://mp.usr.cn/draw/s.html?s=7bu2rw782f&a=aHR0cHM6Ly9hcGltcC51c3IuY24vdXNyQ2xvdWQ=&l=cn",
		// 		"custom-webview", { //1 创建一个webview
		// 			hardwareAccelerated: true,
		// 			scrollIndicator: "none",
		// 			scalable: true
		// 		});
		// 	wv.appendJsFile("/hybrid/util.js"); // 2.加载本地js
		// 	var currentWebview = this.$scope.$getAppWebview();
		// 	currentWebview.append(wv); // 如果不想把远程页面显示在主窗口可以不这么做
		// }
		// // #endif
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		height: 100vh;
		/* 设置内容高度为视口高度 */
	}

	web-view {
		width: 100%;
		height: 100%;
	}
</style>